From 75e4fcb922f8dc02ac6a4b64ad341b625787bee0 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 16 Aug 2005 09:36:41 +0000 Subject: [PATCH] add -Wall to CFLAGS if gcc is being used. Use AC_CONFIG_FILES() to define 2005-08-16 Sven Neumann * configure.ac: add -Wall to CFLAGS if gcc is being used. Use AC_CONFIG_FILES() to define the files that need to be generated. --- ChangeLog | 5 +++++ configure.ac | 23 ++++++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5f9880..b96d4a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-16 Sven Neumann + + * configure.ac: add -Wall to CFLAGS if gcc is being used. Use + AC_CONFIG_FILES() to define the files that need to be generated. + 2005-08-16 Øyvind Kolås * babl/base/mode-ycbcr.c: use coefficients from Charles Poyntes color diff --git a/configure.ac b/configure.ac index b673e18..e6491bb 100644 --- a/configure.ac +++ b/configure.ac @@ -28,13 +28,22 @@ AM_PROG_LIBTOOL AC_STDC_HEADERS AM_SANITY_CHECK +if eval "test x$GCC = xyes"; then + case " $CFLAGS " in + *[\ \ ]-Wall[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -Wall" ;; + esac +fi + dnl =========================================================================== -AC_OUTPUT(Makefile \ - babl.pc \ - babl/Makefile \ - babl/base/Makefile \ - tests/Makefile \ - INSTALL \ - README +AC_CONFIG_FILES( +Makefile +babl.pc +babl/base/Makefile +tests/Makefile +INSTALL +README ) + +AC_OUTPUT -- 2.30.2